/*
 *      main_netbook.h
 *      
 *      Copyright 2009 AzureSky <AzureSky.fedora@gmail.com>
 *      
 *      This program is free software; you can redistribute it and/or modify
 *      it under the terms of the GNU General Public License as published by
 *      the Free Software Foundation; either version 2 of the License, or
 *      (at your option) any later version.
 *      
 *      This program is distributed in the hope that it will be useful,
 *      but WITHOUT ANY WARRANTY; without even the implied warranty of
 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *      GNU General Public License for more details.
 *      
 *      You should have received a copy of the GNU General Public License
 *      along with this program; if not, write to the Free Software
 *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 *      MA 02110-1301, USA.
 */

#ifndef _MAIN_NOTEBOOK_H_
#define _MAIN_NOTEBOOK_H_

#include <gtkmm.h>
#include "gconf_notebook.h"
#include "net_view.h"
#include "proc_view.h"
#include "../sysctl/system.h"

class main_notebook : public Gtk::Notebook
{
	public:
		main_notebook(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builder>& refGlade);
		~main_notebook();
	
		const Glib::RefPtr<Gtk::Builder>& refXml;
		
	private:
		void init_notebook();
		void base_info();
		void net_info();
		void proc_info();
		void gconf_info();
		void about_info();

		void button_refresh();
		bool net_refresh();
		bool proc_refresh();

		gconf_notebook* gconf_page;

		Gtk::Entry* host_name;
		Gtk::Entry* dist_name;
		Gtk::Entry* kernel_name;
		Gtk::Entry* cpu_name;
		Gtk::Entry* mem_total;

		net_view* net_con;
		proc_view* proc_con;
		
		sys_info my_system;
};

#endif //_MAIN_NOTEBOOK_H_
